package com.hbzhit.common.utils;

/**
 * 系统常量定义
 * @author DING
 * @date 2021/4/7 15:15
 * @version 1.0
 **/
public class Constant {
	/** 超级管理员ID */
	public static final long SUPER_ADMIN = 1;

    /** 整型-是 */
    public static final int INT_Y = 1;
    /** 整型-否 */
    public static final int INT_N = 0;
    /** 字符型-是 */
    public static final String STR_Y = "1";
    /** 字符型-否 */
    public static final String STR_N = "0";

    /**时间戳字段*/
    public static final String TIMESTAMP = "t";
    /**当前页码字段*/
    public static final String PAGE = "page";
    /**每页显示记录数字段*/
    public static final String LIMIT = "limit";
    /**排序字段*/
    public static final String SORT = "sort";
    /**正序标识*/
    public static final String SORT_ASC = "ASC";
    /**倒序标识*/
    public static final String SORT_DESC = "DESC";
    /**默认页码*/
    public static final long INIT_PAGE = 1;
    /**默认每页显示记录数（最大500）*/
    public static final long INIT_LIMIT = 10;

    /**系统菜单标识*/
    public static final String MENU_PROP_SYS = "sys/menu";

	/**
	 * 菜单类型
	 */
    public enum MenuType {
        /**
         * 目录
         */
    	CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     * 定时任务状态
     */
    public enum ScheduleStatus {
        /**
         * 正常
         */
    	NORMAL(0),
        /**
         * 暂停
         */
    	PAUSE(1);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}
